package code;

public class Crate extends MovableObject
{
	public Crate(String texture)
	{
		super(texture);
	}
	@Override
	public Boolean attemptMove(Direction dir)
	{
		if(this.canMove(dir))
		{
			Cell target = this.getCurrentCell().cellAt(dir);
			this.moveTo((ContainerCell)target);
			return true;
		}
		
		return false;
	}
	public boolean sinksOnWater(){
		return true;
	}
	
	
	
	
}
